from model.uml_element import UmlElement
from model.uml_xmi_info import UmlXmiInfo

class UmlPrimitiveType(UmlElement):
    def __init__(self) -> None:
        super().__init__(UmlXmiInfo.type_primitive_type)
        self.name: str = ""

    def to_json(self) -> dict[str, object]:
        json: dict = super().to_json()
        json["name"] = self.name
        
        return json